package Homework;

public class Isprime {

	public static void main(String[] args) {

		int i = 2;
		int n;
		for(n=2;n<=1000;n++)
		{
			for(i=2;i<n;i++)
			{
				if(n%i == 0)
				{
					break;
				}
			}
			if(i==n)
			{
				System.out.print(n+"  ");
			}
		}


	}

}
